﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CoyoEden.Models;

namespace CoyoEden.Services
{
    public interface ICommunityService
    {
        /// <summary>
        /// Retrieves a Community from the provider based on the specified id.
        /// </summary>
        Community SelectCommunity(int id);
        /// <summary>
        /// Inserts a new Community into the data store specified by the provider.
        /// </summary>
        void InsertCommunity(Community item);
        /// <summary>
        /// Updates an existing Community in the data store specified by the provider.
        /// </summary>
        void UpdateCommunity(Community item);
        /// <summary>
        /// Deletes a Community from the data store specified by the provider.
        /// </summary>
        void DeleteCommunity(Community item);
        /// <summary>
        /// Retrieves all Communites from the provider and returns them in a List.
        /// </summary>
        List<Community> FillCommunities();
    }
}